This article provides an introduction to Ditto’s methods for authentication, as well as step‑by‑step instructions on how to use the online playground authentication mode to initialize Ditto and start prototyping.
Method | Use Case |
---|---|
OnlinePlayground ¹ | You’re ready to explore and test realtime sync capabilities without the commitment using either a demo app or your own development app. |
OnlineWithAuthentication | You’ve integrated Ditto, integrated a third‑party identity service provider, and are now ready to go into production. |
authenticator
which will pass it to an authentication webhook. As the developer, you are responsible for writing code and deploying the this webhook to an accessible URL. The authentication webhook will validate and decode the token from the client side and return identity and access control information back to your Ditto instance.
The full flow is detailed in the diagram below:
authenticationExpiringSoon.
If you do not implement this, then sync will stop when the token expires.